
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObject;
using DataAccessLayer;

namespace BusinessLogic
{
    /// <summary>
    /// Define ChiTietPhieuCapNhatTonKhoUtil class. This class user for BussinessLayer.

    /// </summary>
    public class ChiTietPhieuCapNhatTonKhoUtil
    {
        /// <summary>
        /// Define function Insert for ChiTietPhieuCapNhatTonKho Object.
        /// </summary>
        /// <param name="t">object data need Insert.</param>
        /// <returns>
        ///    True: if insert successfull.
        ///    False: if insert error.
        ///</returns>
        public static bool Insert(ChiTietPhieuCapNhatTonKho t)
        {

            return ChiTietPhieuCapNhatTonKhoDao.Insert(t);
        }
        /// <summary>
        /// Define function Update for ChiTietPhieuCapNhatTonKho Object.
        /// </summary>
        /// <param name="t">project data need updated.</param>
        /// <returns>
        ///    True: if update successful.
        ///    False: if update Error.
        ///</returns>
        public static bool Update(ChiTietPhieuCapNhatTonKho t)
        {

            return ChiTietPhieuCapNhatTonKhoDao.Update(t);
        }
        /// <summary>
        /// Get All ChiTietPhieuCapNhatTonKho object from table ChiTietPhieuCapNhatTonKho.
        /// </summary>
        /// <returns>List ChiTietPhieuCapNhatTonKho object.</returns>
        public static List<ChiTietPhieuCapNhatTonKhoResult> GetAll()
        {
            return ChiTietPhieuCapNhatTonKhoDao.GetAll();
        }
        /// <summary>
        /// Search ChiTietPhieuCapNhatTonKho object in table ChiTietPhieuCapNhatTonKho.
        /// </summary>
        /// <param name="t">Condition for Search.</param>

        /// <returns>List ChiTietPhieuCapNhatTonKhoResult objects.</returns>

        public static List<ChiTietPhieuCapNhatTonKhoResult> SearchChiTietPhieuCapNhatTonKhoSomeCondition(ChiTietPhieuCapNhatTonKho t)
        {
            return ChiTietPhieuCapNhatTonKhoDao.SearchChiTietPhieuCapNhatTonKhoSomeCondition(t);
        }
        /// <summary>
        /// Get a ChiTietPhieuCapNhatTonKho data object by primary key. 
        /// </summary>
        /// <param name="maPhieuCapNhatTonKho" >This is primary key.</param>
        /// <returns>A ChiTietPhieuCapNhatTonKho object.</returns>

        public static ChiTietPhieuCapNhatTonKho Get(int maPhieuCapNhatTonKho)
        {
            return ChiTietPhieuCapNhatTonKhoDao.Get(maPhieuCapNhatTonKho);
        }
        /// <summary>
        /// This function to Delete ChiTietPhieuCapNhatTonKho object by primary key.
        /// </summary>
        /// <param name="maPhieuCapNhatTonKho" >This is primary key.</param>
        /// <returns>If succesful return True else  return False.</returns>

        public static bool Delete(int maPhieuCapNhatTonKho)
        {

            return ChiTietPhieuCapNhatTonKhoDao.Delete(maPhieuCapNhatTonKho);
        }
    }
}